
<%@page import="fu.abc.DAO.ErrorDAO"%>
<%@page import="fu.abc.model.Error"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Vnplace - Báo cáo lỗi</title>
	
	<!-- CSS -->
	<link href="css/transcreate.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="css/errorpage.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="css/viewerror.css" rel="stylesheet" type="text/css" media="screen" />
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
	<script src='jquery.js' type='text/javascript'></script>
	
	<style>
		fieldset {
			height: max;
		}
		.btnEdit{
			width: 200px;
			height: 32px;
			background: #19A3A3;
			border: thin;
			color: white;
			font-size: 1.1em;
			margin-left: 50px;
			margin-top: 80px;
		}
		.btnEdit:hover{
			background: #007A7A;
		}
	</style>
</head>

<body class="dt-example">
	<div id="wrapper">
		<!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
		<div id="header">
		<%String acc = (String)session.getAttribute("acc"); %>
		<ul id="header-menu">
			<li><p class="logo">Content-Editor</p></li>
			<li>
			<%

				if(acc==null){
					response.sendRedirect("/Vnplace/systemAdmin/login.jsp");
				}else{
				
 			%>
				<p class="hello">
					Chào <b><%=acc %></b>
				</p>
				<%} %>
			</li>
			<li><a href="/Vnplace/content-editor/logout.jsp" class="logout">Đăng xuất</a></li>
		</ul>
		</div>

		<!-- // #end mainNav -->

		<div id="containerHolder">
			<div id="container">
				<div id="sidebar">
					<ul class="sideNav">
						<li><a href="/Vnplace/content-editor/contenteditor.jsp">Trang chủ</a></li>
						<li><a href="/Vnplace/content-editor/manageLocation.jsp">Quản lý địa điểm</a></li>
						<li class="create"><a href="/Vnplace/content-editor/manageCategory.jsp" >Quản lý nhóm địa điểm</a></li>
						<li class="error"><a href="/Vnplace/content-editor/manageerror.jsp" >Quản lý lỗi</a></li>
					</ul>
					<!-- // .sideNav -->
				</div>
				<!-- // #sidebar -->
				<div id="link-home">
					<ul id="link-ul">
						<li><a href="">Trang chủ</a></li>
						<li><img src="image/12.png" width="15px" height="25px" class="home"/></li>
						<li><a href="editerror.jsp">Báo cáo lỗi</a></li>
					</ul>	 
				</div>
				<div id="main">
<!-- 					<section id="main_content" class="inner"> -->
							<fieldset id="fieldset">
								<div class="title">
									<p class="p-title">Báo cáo vấn đề của hệ thống</p>
								</div>		
								<br/>						
								<hr/>
								<%
									int id = Integer.parseInt(request.getParameter("idlocal"));
									String idlocal = request.getParameter("idlocal");
									Error err = new Error();
									ErrorDAO errdao = new ErrorDAO();
									err = errdao.getErrorInfor(id);
								%>
								<div id="content-error">
									<div id="name-error">
										<label>Tên lỗi địa điểm: <i><%=err.getErrorName() %></i></label>
									</div>
									<div id="name-error">
										<label>Tên địa điểm: <i><%=err.getLocalName() %></i></label>
									</div>
									<div id="name-error">
										<label>Địa chỉ: <i><%=err.getAddressLocation() %></i></label>
									</div>
									<div id="name-error">
										<label>Nội dung:</label>
										 <p style="padding-left: 100px">
										 	<%=err.getContent() %>
										</p>
									</div>
									<div id="edit-error">
										<input type="button" value="Xem thông tin địa điểm" class="btnEdit" 
											onclick="window.location='editLocation.jsp?id=<%=err.getLocation() %>'"/>
									</div>
								</div>
							</fieldset>
<!-- 					 </section> -->
<!-- 					 end section -->
				</div>
				<!-- // #main -->

				<div class="clear"></div>
			</div>
			<!-- // #container -->
		</div>
		<!-- // #containerHolder -->
		<div id="footer" class="footer">
			<p class="copyright">©Copyright 2014 Vnplacevn</p>
		</div>
	</div>

	<!-- // #wrapper -->
</body>
</html>
